<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('给产品配图')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-pic-edit" th:object="${picShow}">
            <input id="productPic.picId" name="productPic.picId" type="hidden" th:field="*{productPic.picId}"/>
<!--            <input name="productSeries.seriesId" type="hidden" th:value="" />-->
<!--            <input name="productStyle.styleId" type="hidden" th:value="" />-->
<!--            <input name="productSpec.specId" type="hidden" th:value="" />-->
<!--            <input name="productMaterial.materialId" type="hidden" th:value="" />-->
<!--            <input name="productClass.classId" type="hidden" th:value="" />-->
            <div>
                产品:
                <select name="pid" th:with="product=${@proProp.getProduct()}" >
                    <option value="">---请选择想要更换图片的产品---</option>
                    <option id="pro" th:each="p : ${product}" th:text="${p.pname}" th:value="${p.pid}"></option>
                </select>
            </div>
            <div class="form-group">
                准备更换的图片：
                <img th:src="*{productPic.picUrl}" >
            </div>
        </form>
    </div>
<th:block th:include="include :: footer" />
    <script type="text/javascript">
    var prefix = ctx + "product/pic";
    function submitHandler() {
        $.operate.save(prefix + "/picchange", $('#form-pic-edit').serialize());
    }
</script>
</body>
</html>
